package schedulo.gui.components;

import javax.swing.JPanel;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import javax.swing.JButton;
import java.awt.Insets;

public class TimeTrackerTab extends JPanel implements NewTaskPanelListener {

	private TimeTrackerPanel timeTrackerPanel = null;
	/**
	 * This method initializes 
	 * 
	 */
	public TimeTrackerTab() {
		super();
		initialize();
	}

	/**
	 * This method initializes this
	 * 
	 */
	private void initialize() {
        GridBagConstraints gridBagConstraints = new GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.anchor = GridBagConstraints.NORTHWEST;
        gridBagConstraints.gridy = 0;
        this.setLayout(new GridBagLayout());
        this.add(getTimeTrackerPanel(), gridBagConstraints);
			
	}

	/**
	 * This method initializes timeTrackerPanel	
	 * 	
	 * @return schedulo.gui.components.TimeTrackerPanel	
	 */
	private TimeTrackerPanel getTimeTrackerPanel() {
		if (timeTrackerPanel == null) {
			GridBagConstraints gridBagConstraints3 = new GridBagConstraints();
			gridBagConstraints3.gridx = 3;
			gridBagConstraints3.insets = new Insets(5, 5, 5, 5);
			gridBagConstraints3.gridy = 6;
			timeTrackerPanel = new TimeTrackerPanel();
		}
		return timeTrackerPanel;
	}

	public void newTaskPanelNotification(boolean taskValid) {
		
	}

}
